import 'package:flutter/material.dart';
import './fonts.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData(
          primarySwatch: Colors.yellow
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('图标'),
        ),
        body: const MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return const Center(
      child: Column(
        children: [
          Icon(Icons.search,color: Colors.red,size: 40,),
          SizedBox(height: 10,),
          Icon(Icons.home),
          SizedBox(height: 10,),
          Icon(Icons.category),
          SizedBox(height: 10,),
          Icon(Icons.shop),
          SizedBox(height: 10,),
          Icon(Icons.arrow_left),
          SizedBox(height: 10,),
          Icon(MyIcons.book),
          SizedBox(height: 10,),
          Icon(MyIcons.weixin),
          SizedBox(height: 10,),
          Icon(MyIcons.lanya),
          SizedBox(height: 10,),
        ],
      ),
    );
  }
}
